ostree.git
9 years agoBuild-depend on procps, used to check for leaked processes
Simon McVittie [Sun, 12 Jun 2016 13:45:52 +0000 (09:45 -0400)]
Build-depend on procps, used to check for leaked processes

9 years agoAdd patches to make sure the tests fail as soon as something goes wrong
Simon McVittie [Sat, 11 Jun 2016 18:54:30 +0000 (19:54 +0100)]
Add patches to make sure the tests fail as soon as something goes wrong

9 years agoUpload to unstable.
Simon McVittie [Wed, 8 Jun 2016 20:05:03 +0000 (21:05 +0100)]
Upload to unstable.

9 years agoRemove ostree-grub2 and the boot-related parts of ostree
Simon McVittie [Wed, 8 Jun 2016 20:04:59 +0000 (21:04 +0100)]
Remove ostree-grub2 and the boot-related parts of ostree

This leaves behind the library and the command-line tool, which are
also used by Flatpak. When we have documentation for how to use and test
OSTree deployments with a Debian derivative (see #824649), they should
be reinstated in an ostree-boot package (see #824650).

9 years agoRename ostree-grub2 to ostree-boot. Move all initramfs and bootloader integration...
Simon McVittie [Wed, 8 Jun 2016 10:58:46 +0000 (11:58 +0100)]
Rename ostree-grub2 to ostree-boot. Move all initramfs and bootloader integration there. (Closes: #824650)

9 years agoAdd a patch to skip the test-parent test if /var/tmp doesn't support user xattrs...
Simon McVittie [Mon, 25 Apr 2016 11:51:45 +0000 (12:51 +0100)]
Add a patch to skip the test-parent test if /var/tmp doesn't support user xattrs, hopefully fixing FTBFS on x86-csail-02 buildd

9 years ago2016.5-1
Simon McVittie [Mon, 25 Apr 2016 06:46:24 +0000 (07:46 +0100)]
2016.5-1

9 years agoStandards-version: 3.9.8 (no changes needed)
Simon McVittie [Mon, 25 Apr 2016 06:46:12 +0000 (07:46 +0100)]
Standards-version: 3.9.8 (no changes needed)

9 years agoMark patch as applied upstream
Simon McVittie [Mon, 25 Apr 2016 06:33:46 +0000 (07:33 +0100)]
Mark patch as applied upstream

9 years agoAdd a patch to put more information in the log if tests fail, in an attempt to debug...
Simon McVittie [Sun, 17 Apr 2016 08:59:23 +0000 (09:59 +0100)]
Add a patch to put more information in the log if tests fail, in an attempt to debug a failure in test/pull-resume.sh which I can no longer reproduce

9 years agoWork around #821235 to avoid undefined macro 'AQ' in some man pages
Simon McVittie [Sun, 17 Apr 2016 08:40:06 +0000 (09:40 +0100)]
Work around #821235 to avoid undefined macro 'AQ' in some man pages

9 years agoWiden regex for killing stray gpg-agent processes
Simon McVittie [Sat, 16 Apr 2016 22:07:31 +0000 (23:07 +0100)]
Widen regex for killing stray gpg-agent processes

9 years agoUpdate symbols file for 2016.5
Simon McVittie [Sat, 16 Apr 2016 22:04:37 +0000 (23:04 +0100)]
Update symbols file for 2016.5

9 years agoBuild-depend on elfutils, for test-abi.sh
Simon McVittie [Sat, 16 Apr 2016 21:37:01 +0000 (22:37 +0100)]
Build-depend on elfutils, for test-abi.sh

9 years agoDrop patches from 2016.4, applied upstream
Simon McVittie [Sat, 16 Apr 2016 21:30:33 +0000 (22:30 +0100)]
Drop patches from 2016.4, applied upstream

9 years agodebian/rules: use Debian's grub2-mkconfig path
Simon McVittie [Sat, 16 Apr 2016 21:25:30 +0000 (22:25 +0100)]
debian/rules: use Debian's grub2-mkconfig path

9 years agodebian/copyright: update for 2016.5
Simon McVittie [Sat, 16 Apr 2016 21:25:02 +0000 (22:25 +0100)]
debian/copyright: update for 2016.5

9 years agoNew(er) upstream release
Simon McVittie [Sat, 16 Apr 2016 21:24:26 +0000 (22:24 +0100)]
New(er) upstream release

9 years agoMerge tag 'upstream/2016.5' into debian/master
Simon McVittie [Sat, 16 Apr 2016 21:22:20 +0000 (22:22 +0100)]
Merge tag 'upstream/2016.5' into debian/master

Upstream version 2016.5

9 years agoImported Upstream version 2016.5
Simon McVittie [Sat, 16 Apr 2016 21:22:18 +0000 (22:22 +0100)]
Imported Upstream version 2016.5

10 years agoRelease 2016.5
Colin Walters [Fri, 15 Apr 2016 14:51:39 +0000 (10:51 -0400)]
Release 2016.5

Closes: #261
Approved by: cgwalters

10 years agostatic-delta: Initialize read_source_fd to -1
Alexander Larsson [Fri, 15 Apr 2016 08:01:42 +0000 (10:01 +0200)]
static-delta: Initialize read_source_fd to -1

If not, we'll get ESPIPE when seeking on fd 0.

Closes: #260
Approved by: cgwalters

10 years agostatic-delta: Put temp files in /var/tmp
Alexander Larsson [Thu, 14 Apr 2016 18:55:28 +0000 (20:55 +0200)]
static-delta: Put temp files in /var/tmp

We may not have write permissions in the current directory.

Closes: #259
Approved by: cgwalters

10 years agorefs: Add g_prefix_error around opendir for easier debugging
Colin Walters [Wed, 13 Apr 2016 13:28:30 +0000 (09:28 -0400)]
refs: Add g_prefix_error around opendir for easier debugging

Addresses:
  https://github.com/projectatomic/rpm-ostree/issues/264

We should consider moving this down into `glnx_opendirat`, but for now
a quick fix.

Closes: #255
Approved by: jlebon

10 years agoLook for $remotename.trustedkeys.gpg in remotes.d dir
Alexander Larsson [Fri, 8 Apr 2016 15:00:59 +0000 (17:00 +0200)]
Look for $remotename.trustedkeys.gpg in remotes.d dir

This is a nice way to add gpg keys for system configured remotes
without making them globally trusted.

Closes: #247
Approved by: cgwalters

10 years agoAdd remotes-config-dir to OstreeRepo
Alexander Larsson [Fri, 8 Apr 2016 14:59:12 +0000 (16:59 +0200)]
Add remotes-config-dir to OstreeRepo

This allows you to replace the default
$sysroot/$sysconfdir/ostree/repos.d string value, and to use a similar
feature for repos that are not the system repo.

In particular, this allows us to support /etc/xdg-app/remotes.d for
xdg-app.

Closes: #247
Approved by: cgwalters

10 years agoman: Elaborate on per-remote GPG
Colin Walters [Thu, 14 Apr 2016 15:05:22 +0000 (11:05 -0400)]
man: Elaborate on per-remote GPG

Closes: #258
Approved by: alexlarsson

10 years agoAdd OstreeRepo option for an out-of-band cache dir
Alexander Larsson [Mon, 11 Apr 2016 10:43:07 +0000 (12:43 +0200)]
Add OstreeRepo option for an out-of-band cache dir

This allows you to have a writable cache dir even for a system-owned
repository.

Closes: #250
Approved by: cgwalters

10 years agoAdd cache_dir_fd to OstreeRepo
Alexander Larsson [Mon, 11 Apr 2016 08:25:40 +0000 (10:25 +0200)]
Add cache_dir_fd to OstreeRepo

This will allow us later to easily swap out the cache dir.

Closes: #250
Approved by: cgwalters

10 years agocommit: Fix crash if dfd_iter is NULL
Alexander Larsson [Wed, 13 Apr 2016 19:18:19 +0000 (21:18 +0200)]
commit: Fix crash if dfd_iter is NULL

in write_directory_content_to_mtree_internal dfd_iter can be NULL,
for instance if commiting from --tree=ref=FOO. Don't blindly de-ref
it to avoid crashing.

Closes: #256
Approved by: cgwalters

10 years agofetcher: Initialize output_stream_set_lock mutex
Alexander Larsson [Wed, 13 Apr 2016 09:14:20 +0000 (11:14 +0200)]
fetcher: Initialize output_stream_set_lock mutex

ostree pull-local crashed for me in thread_closure_unref () doing:
    g_mutex_clear (&thread_closure->output_stream_set_lock);

Seems like we never initialize this mutex.

Closes: #254
Approved by: cgwalters

10 years agoFix AS_HELP_STRING for builtin grub2 mkconfig
Gatis Paeglis [Tue, 12 Apr 2016 09:26:27 +0000 (11:26 +0200)]
Fix AS_HELP_STRING for builtin grub2 mkconfig

Closes: #253
Approved by: giuseppe

10 years agobuild: Move grub2-15_ostree back to pkglibexecdir
Colin Walters [Fri, 8 Apr 2016 14:28:17 +0000 (10:28 -0400)]
build: Move grub2-15_ostree back to pkglibexecdir

It's not quite namespaced enough to have
`/usr/libexec/grub2-15_ostree`, and the Fedora spec file expects
things in `/usr/libexec/ostree`.  Changing the spec file would be
annoying as we'd need conditionals.

Closes: #249
Approved by: gatispaeglis

10 years agopull: More consistently use remote_repo_local for local repos
Colin Walters [Tue, 5 Apr 2016 19:37:32 +0000 (15:37 -0400)]
pull: More consistently use remote_repo_local for local repos

I think it's cleaner if we use `remote_repo_local` to know
that we have a local repo.  In reality, it might be nicest
if we didn't even create an `OstreeFetcher` for this case,
but untangling the code is tricky.

Closes: #239
Approved by: alexlarsson

10 years agoostree-repo-pull: always initialize flags_i
Jonathan Lebon [Mon, 11 Apr 2016 13:27:35 +0000 (09:27 -0400)]
ostree-repo-pull: always initialize flags_i

Otherwise we get undefined behaviour if the client didn't explicitly set
any flags.

Also, add documentation for all the other options supported by
ostree_repo_pull_with_options().

Closes: #252
Approved by: cgwalters

10 years agoFix the symbol versions for ostree_repo_get_remote_*option
Alexander Larsson [Mon, 11 Apr 2016 10:46:57 +0000 (12:46 +0200)]
Fix the symbol versions for ostree_repo_get_remote_*option

These were accidentally added to 2016.4 instead of 2016.5

Closes: #251
Approved by: cgwalters

10 years agosmall cleanups
Jonathan Lebon [Fri, 8 Apr 2016 16:18:17 +0000 (12:18 -0400)]
small cleanups

- Revert 'cannot' --> 'can not' (it's the exception!)
- Remove duplicate function
- Squelch compiler warnings

Closes: #248
Approved by: cgwalters

10 years agoAdd support for ostree static-delta delete
Alexander Larsson [Fri, 8 Apr 2016 08:44:24 +0000 (10:44 +0200)]
Add support for ostree static-delta delete

Closes: #245
Approved by: giuseppe

10 years agocfg.mk: ignore syntax-check for git.mk
Giuseppe Scrivano [Fri, 8 Apr 2016 10:10:44 +0000 (12:10 +0200)]
cfg.mk: ignore syntax-check for git.mk

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #246
Approved by: cgwalters

10 years agoAdd test case for inheriting remote options
Alexander Larsson [Fri, 1 Apr 2016 08:20:34 +0000 (10:20 +0200)]
Add test case for inheriting remote options

Closes: #236
Approved by: cgwalters

10 years agoInherit remotes and remote options from parent repo
Alexander Larsson [Thu, 31 Mar 2016 21:03:53 +0000 (23:03 +0200)]
Inherit remotes and remote options from parent repo

Closes: #236
Approved by: cgwalters

10 years agoExport ostree_repo_get_remote_option* functions
Alexander Larsson [Thu, 31 Mar 2016 20:00:43 +0000 (22:00 +0200)]
Export ostree_repo_get_remote_option* functions

These are useful for ostree users (like xdg-app) that have custom
options for remotes. In particular they are useful when we later make them
all respect self->parent_repo.

Closes: #236
Approved by: cgwalters

10 years agoSupport pathnames for --subpath=...
Alexander Larsson [Thu, 7 Apr 2016 15:03:08 +0000 (17:03 +0200)]
Support pathnames for --subpath=...

This allows you to pull a single file, rather than just a directory.

Closes: #244
Approved by: cgwalters

10 years agoUse git.mk
Colin Walters [Thu, 31 Mar 2016 19:08:45 +0000 (15:08 -0400)]
Use git.mk

It's a lot nicer than manually maintaining .gitignore in general.

Closes: #235
Approved by: giuseppe

10 years agodocs: Prefer the form "cannot" to "can not"
Giuseppe Scrivano [Thu, 7 Apr 2016 08:13:45 +0000 (10:13 +0200)]
docs: Prefer the form "cannot" to "can not"

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #242
Approved by: cgwalters

10 years agoRemove empty new lines at the EOF
Giuseppe Scrivano [Thu, 7 Apr 2016 08:06:54 +0000 (10:06 +0200)]
Remove empty new lines at the EOF

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #242
Approved by: cgwalters

10 years agocontrib: indent golang code using only tabs instead of both tabs and spaces
Giuseppe Scrivano [Thu, 7 Apr 2016 08:11:11 +0000 (10:11 +0200)]
contrib: indent golang code using only tabs instead of both tabs and spaces

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #242
Approved by: cgwalters

10 years agotests: add missing ${CMD_PREFIX} before ostree
Giuseppe Scrivano [Thu, 7 Apr 2016 07:55:54 +0000 (09:55 +0200)]
tests: add missing ${CMD_PREFIX} before ostree

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #242
Approved by: cgwalters

10 years agotests: add libostreetest.h to EXTRA_DIST
Giuseppe Scrivano [Thu, 7 Apr 2016 07:53:54 +0000 (09:53 +0200)]
tests: add libostreetest.h to EXTRA_DIST

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #242
Approved by: cgwalters

10 years agobuild: Make tests/libreaddir-rand.so rule use AM_V_GEN
Colin Walters [Thu, 7 Apr 2016 01:26:38 +0000 (21:26 -0400)]
build: Make tests/libreaddir-rand.so rule use AM_V_GEN

So non-verbose builds don't have a verbose rule smack in the middle.

Closes: #241
Approved by: giuseppe

10 years agobuild: Find grub2-mkconfig a bit more automagically
Colin Walters [Wed, 6 Apr 2016 18:22:19 +0000 (14:22 -0400)]
build: Find grub2-mkconfig a bit more automagically

If one happens to not have grub2 installed, the previous commit
would cause us to fall back to `grub-mkconfig` with bad results.

We should likely just do dynamic detection and avoid pain, but
there's no harm in also allowing this to be statically determined.

The automagic here is that if `/etc/os-release` says `ID_LIKE=fedora`,
we know to use `grub2-mkconfig`.  But distro scripts should set this
in the build configurations using `--with-grub2-mkconfig=`.

Closes: #240
Approved by: jlebon

10 years agopull-local: Support --gpg-verify and --gpg-verify-summary
Alexander Larsson [Mon, 4 Apr 2016 13:17:17 +0000 (15:17 +0200)]
pull-local: Support --gpg-verify and --gpg-verify-summary

Force the otherwise disabled gpg verifications on.
Note: You need to pass --remote=foo so we know what gpg keys to verify
against.

Closes: #237
Approved by: cgwalters

10 years agoFix local-pull test
Alexander Larsson [Mon, 4 Apr 2016 12:43:33 +0000 (14:43 +0200)]
Fix local-pull test

This was not being run for whatever reason. Also, the test
count was wrong.

Closes: #237
Approved by: cgwalters

10 years agopull: Don't try to cache summaries for pull-local
Alexander Larsson [Mon, 4 Apr 2016 12:26:53 +0000 (14:26 +0200)]
pull: Don't try to cache summaries for pull-local

Not only does this not make sense from a performance perspective, but
it also doesn't work because we can't use a url as a path element.

Closes: #237
Approved by: cgwalters

10 years agoIntroducing ostree-grub-generator
Gatis Paeglis [Fri, 1 Apr 2016 11:51:18 +0000 (13:51 +0200)]
Introducing ostree-grub-generator

ostree-grub-generator can be used to customize
the generated grub.cfg file. Compile time
decision ostree-grub-generator vs grub2-mkconfig
can be overwritten with the OSTREE_GRUB2_EXEC
envvar - useful for auto tests and OS installers.

Why this alternative approach:

1) The current approach is less flexible than using a
   custom 'ostree-grub-generator' script. Each system can
   adjust this script for its needs, instead of using the
   hardcoded values from ostree-bootloader-grub2.c.

2) Too much overhead on embedded to generate grub.cfg
   via /etc/grub.d/ configuration files. It is still
   possible to do so, even with this patch applied.
   No need to install grub2 package on a target device.

3) The grub2-mkconfig code path has other issues:
   https://bugzilla.gnome.org/show_bug.cgi?id=761180

Task: https://bugzilla.gnome.org/show_bug.cgi?id=762220

Closes: #228
Approved by: cgwalters

10 years agomanual: Fix a bunch of typos and docbookisms
Krzesimir Nowak [Mon, 4 Apr 2016 13:25:39 +0000 (15:25 +0200)]
manual: Fix a bunch of typos and docbookisms

Closes: #238
Approved by: cgwalters

10 years agoAdd yet more patches to make the installed-tests work
Simon McVittie [Fri, 1 Apr 2016 05:59:13 +0000 (06:59 +0100)]
Add yet more patches to make the installed-tests work

10 years agolibtest.sh: only check whether $(pwd) is empty once
Simon McVittie [Thu, 31 Mar 2016 16:52:57 +0000 (17:52 +0100)]
libtest.sh: only check whether $(pwd) is empty once

test-sysroot.js runs libtestExec() twice, one of which is after
creating non-hidden directories in $(pwd), so this check needs to be
skipped the second time.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #234
Approved by: cgwalters

10 years agotest-xattrs: sync how this is skipped with test-rofiles-fuse
Simon McVittie [Thu, 31 Mar 2016 16:47:36 +0000 (17:47 +0100)]
test-xattrs: sync how this is skipped with test-rofiles-fuse

If we touch test-xattrs before sourcing libtest.sh, we get:

test tmpdir=/tmp/test-tmp-ostree_test-xattrs.sh.test-HSEXEY is not
empty; run this test via `make check TESTS=`, not directly

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #234
Approved by: cgwalters

10 years agotest-abi: use G_TEST_SRCDIR, G_TEST_BUILDDIR
Simon McVittie [Thu, 31 Mar 2016 17:30:52 +0000 (18:30 +0100)]
test-abi: use G_TEST_SRCDIR, G_TEST_BUILDDIR

There's no need to invent new variables for these.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #234
Approved by: cgwalters

10 years agolibtest.sh: use G_TEST_SRCDIR, G_TEST_BUILDDIR to find resources
Simon McVittie [Thu, 31 Mar 2016 17:29:44 +0000 (18:29 +0100)]
libtest.sh: use G_TEST_SRCDIR, G_TEST_BUILDDIR to find resources

This fixes the bug that in installed-tests that run testlib.sh under
"bash -c" (i.e. the C and JS tests), $(dirname $0) is "." and we can't do
the LD_PRELOAD correctly:

ERROR: ld.so: object './libreaddir-rand.so' from LD_PRELOAD cannot be
preloaded (cannot open shared object file): ignored.

Similarly, those tests can't copy gpghome correctly.

This also removes the confusing situation that SRCDIR in libtest.sh
(which is ${top_srcdir}/tests) does not mean the same thing as SRCDIR
in test-abi.sh (which is just ${top_srcdir}).

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #234
Approved by: cgwalters

10 years agotests: Make failing to kill the GPG agent non-fatal
Colin Walters [Thu, 31 Mar 2016 17:46:16 +0000 (13:46 -0400)]
tests: Make failing to kill the GPG agent non-fatal

It's not working for me in `make check` on a RHEL 7 Workstation,
apparently because no GPG agent is spawned.  I'm guessing this has
something to do with the GPG version?

The downside of this is we will be less likely to notice if GPG
changes again and we start leaking agents like we're in The Matrix
Reloaded.  But the real solution to that is containers anyways.

Closes: #233
Approved by: smcv

10 years agodebian/gbp.conf: disable numbered patches
Simon McVittie [Thu, 31 Mar 2016 15:12:26 +0000 (16:12 +0100)]
debian/gbp.conf: disable numbered patches

10 years agoAdd a patch to skip a test with non-GNU parallel more reliably
Simon McVittie [Thu, 31 Mar 2016 15:10:15 +0000 (16:10 +0100)]
Add a patch to skip a test with non-GNU parallel more reliably

10 years agoUpdate patches, upstreamed
Simon McVittie [Thu, 31 Mar 2016 15:09:35 +0000 (16:09 +0100)]
Update patches, upstreamed

10 years agoProbe for GNU parallel more accurately
Simon McVittie [Thu, 31 Mar 2016 13:32:55 +0000 (14:32 +0100)]
Probe for GNU parallel more accurately

moreutils parallel isn't compatible with the command-line syntax
used here. Because it doesn't implement GNU-style --help and exits 1
when that option is given, this test was correctly skipped when
using moreutils parallel, but only by mistake.

moreutils parallel might conceivably gain --help and --version in
future, but hopefully nothing incompatible with GNU parallel is going
to gain a --gnu option.

Also use the --gnu option to force the new command-line semantics;
some versions optionally supported an incompatible command-line syntax
taken from moreutils parallel.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agobasic-test: commit with a non-empty subject
Jonathan Lebon [Thu, 31 Mar 2016 13:10:27 +0000 (14:10 +0100)]
basic-test: commit with a non-empty subject

[smcv: split out from a larger commit, part of PR #231; add commit message]
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agotest-pull-untrusted.sh: always corrupt a regular file, not a symlink
Jonathan Lebon [Thu, 31 Mar 2016 13:07:01 +0000 (14:07 +0100)]
test-pull-untrusted.sh: always corrupt a regular file, not a symlink

test-pull-untrusted.sh would pass when run as root, but fail when run
as testuser. It turned out that the way the files were stored in the
repo when running as a testuser were different, which meant that a
different .file object was chosen for corruption. Except that file
turned out to be a symlink, so the echo "broke" actually just wrote
to the no_such_file symlink target, thus keeping the actual symlink
file's checksum the same and causing the pull-local to pass when it
should have failed.

[smcv: split this out of a larger commit, part of PR #231]
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agoSkip tests that run rofiles-fuse if /dev/fuse or /etc/mtab unavailable
Simon McVittie [Thu, 31 Mar 2016 12:44:27 +0000 (13:44 +0100)]
Skip tests that run rofiles-fuse if /dev/fuse or /etc/mtab unavailable

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agoForce libreaddir-rand to be a shared library
Simon McVittie [Thu, 31 Mar 2016 09:17:02 +0000 (10:17 +0100)]
Force libreaddir-rand to be a shared library

If installed-tests are disabled, it would normally be a static
(convenience) library, which isn't something we can LD_PRELOAD.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agotests/admin-test.sh: this is a bash script, not a POSIX sh script
Simon McVittie [Thu, 31 Mar 2016 08:48:18 +0000 (09:48 +0100)]
tests/admin-test.sh: this is a bash script, not a POSIX sh script

The "function foo()" syntax is bash-specific, and Colin indicated in
PR #226 that he prefers to require bash rather than trying to support
every POSIX shell.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agoLoad g-i bindings from builddir during build-time testing
Simon McVittie [Thu, 31 Mar 2016 08:02:23 +0000 (09:02 +0100)]
Load g-i bindings from builddir during build-time testing

Previously, the build-time tests would only pass if the g-i bindings to
OSTree were already installed, with a reasonably similar version.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years ago.gitignore: update
Simon McVittie [Thu, 31 Mar 2016 07:42:09 +0000 (08:42 +0100)]
.gitignore: update

Closes: #232
Approved by: cgwalters

10 years agoIn tests that use gpg, terminate the gpg-agent after testing
Simon McVittie [Thu, 31 Mar 2016 07:27:32 +0000 (08:27 +0100)]
In tests that use gpg, terminate the gpg-agent after testing

Otherwise we leak those processes.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agotap-test: clean up temporary test directories as intended
Simon McVittie [Thu, 31 Mar 2016 07:24:56 +0000 (08:24 +0100)]
tap-test: clean up temporary test directories as intended

The script created ./.testtmp but looked for ./.test, which isn't
going to work.

This means the various "ostree trivial-httpd --autoexit" processes
actually exit, because their web roots are cleaned up now.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agoSymlink libreaddir-rand.so into tests directory
Simon McVittie [Mon, 28 Mar 2016 12:46:23 +0000 (13:46 +0100)]
Symlink libreaddir-rand.so into tests directory

This means it can be LD_PRELOADed during build-time testing.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agovarious tests: skip if temp directory lacks xattr support
Simon McVittie [Thu, 31 Mar 2016 10:06:05 +0000 (11:06 +0100)]
various tests: skip if temp directory lacks xattr support

Some autobuilder environments place the entire build chroot on tmpfs, so
even /var/tmp might not have this.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agotest-xattrs: use TAP syntax to skip test
Simon McVittie [Mon, 28 Mar 2016 12:08:32 +0000 (13:08 +0100)]
test-xattrs: use TAP syntax to skip test

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

10 years agoSkip tests involving rofiles-fuse if unavailable
Simon McVittie [Thu, 31 Mar 2016 12:44:58 +0000 (13:44 +0100)]
Skip tests involving rofiles-fuse if unavailable

10 years agoRun dh_auto_test with VERBOSE=1, to get logs with older debhelper
Simon McVittie [Thu, 31 Mar 2016 12:22:53 +0000 (13:22 +0100)]
Run dh_auto_test with VERBOSE=1, to get logs with older debhelper

10 years agoFix no-xattrs patch so it does the check after sourcing libtest.sh
Simon McVittie [Thu, 31 Mar 2016 10:08:20 +0000 (11:08 +0100)]
Fix no-xattrs patch so it does the check after sourcing libtest.sh

Otherwise the creation of `test-xattrs` breaks the check for an empty
directory in libtest.sh, breaking installed-tests.

Signed-off-by: Simon McVittie <smcv@debian.org>
10 years agoMark patches as forwarded
Simon McVittie [Thu, 31 Mar 2016 09:40:12 +0000 (10:40 +0100)]
Mark patches as forwarded

10 years agoAdd patch to mark admin-test as a bash script, not a POSIX sh script
Simon McVittie [Thu, 31 Mar 2016 08:49:33 +0000 (09:49 +0100)]
Add patch to mark admin-test as a bash script, not a POSIX sh script

10 years agodebian/ostree-tests.lintian-overrides: override a couple of false positives
Simon McVittie [Thu, 31 Mar 2016 08:41:00 +0000 (09:41 +0100)]
debian/ostree-tests.lintian-overrides: override a couple of false positives

10 years agofixup symbols
Simon McVittie [Thu, 31 Mar 2016 08:38:38 +0000 (09:38 +0100)]
fixup symbols

10 years agodebian/rules, debian/ostree-tests.install: adjust for new installation directory...
Simon McVittie [Thu, 31 Mar 2016 08:24:00 +0000 (09:24 +0100)]
debian/rules, debian/ostree-tests.install: adjust for new installation directory for installed-tests

10 years agodebian/rules: clean up stale gpg-agent processes after testing
Simon McVittie [Thu, 31 Mar 2016 08:21:59 +0000 (09:21 +0100)]
debian/rules: clean up stale gpg-agent processes after testing

10 years agodebian/patches: add patches to get the build-time tests passing under sbuild
Simon McVittie [Thu, 31 Mar 2016 08:02:34 +0000 (09:02 +0100)]
debian/patches: add patches to get the build-time tests passing under sbuild

10 years agodebian/rules: warn if there are leftover daemon processes after testing
Simon McVittie [Thu, 31 Mar 2016 07:52:22 +0000 (08:52 +0100)]
debian/rules: warn if there are leftover daemon processes after testing

10 years agodebian/control: build-depend on attr, for the tests (only required if /var/tmp suppor...
Simon McVittie [Thu, 31 Mar 2016 07:51:48 +0000 (08:51 +0100)]
debian/control: build-depend on attr, for the tests (only required if /var/tmp supports extended attributes)

10 years agodocs/CONTRIBUTING.md: Update for github move, Homu etc.
Colin Walters [Wed, 30 Mar 2016 13:19:38 +0000 (09:19 -0400)]
docs/CONTRIBUTING.md: Update for github move, Homu etc.

Closes: #230
Approved by: jlebon

10 years agocommit: support editor for orphan commits
Jonathan Lebon [Wed, 30 Mar 2016 03:27:19 +0000 (23:27 -0400)]
commit: support editor for orphan commits

This is a follow up to #227 to allow ostree to open the editor also for
orphan commits when no subject or body is given on the cmdline.

Closes: #229
Approved by: cgwalters

10 years agocommit: Support writing orphans
Colin Walters [Tue, 29 Mar 2016 14:53:50 +0000 (10:53 -0400)]
commit: Support writing orphans

The API supports this, and it's not hard for us to do in the command
line as well.  One possible use case is separating "content
generation" in a separate server.

Related: https://github.com/ostreedev/ostree/pull/223

Closes: #227
Approved by: jlebon

10 years agocommit: Support generating commits with no parent, or a custom one
Colin Walters [Fri, 25 Mar 2016 15:03:32 +0000 (11:03 -0400)]
commit: Support generating commits with no parent, or a custom one

When I'm doing local development builds, it's quite common for me not
to want to accumulate history.  There are also use cases for this on
build servers as well.

In particular, using this, one could write a build system that didn't
necessarily need to have access to (a copy of) the OSTree repository.
Instead, the build system would determine the last commit ID on the
branch, and pass that to a worker node, then sync the generated
content back.

The API supported generating custom commits that don't necessarily
reference the previous commit on the same branch, let's just expose
this in the command line for convenience.

I plan to also support this rpm-ostree.

Closes: #223
Approved by: jlebon

10 years agodocs: Add a section on repository management
Colin Walters [Fri, 25 Mar 2016 14:35:25 +0000 (10:35 -0400)]
docs: Add a section on repository management

Just keeping my promise to write more documentation.  There could be a
lot more to write here, but I'm trying to get a start done.

Closes: #222
Approved by: jlebon

10 years agodebian/copyright: update
Simon McVittie [Mon, 28 Mar 2016 11:59:14 +0000 (12:59 +0100)]
debian/copyright: update

10 years agoBuild-depend on libmount-dev
Simon McVittie [Mon, 28 Mar 2016 11:53:16 +0000 (12:53 +0100)]
Build-depend on libmount-dev

10 years agoFix ITP bug number in changelog (was #813308, should have been #697477)
Simon McVittie [Mon, 28 Mar 2016 11:52:14 +0000 (12:52 +0100)]
Fix ITP bug number in changelog (was #813308, should have been #697477)

10 years agopackaging: fix bashism in dist-snapshot target
Simon McVittie [Mon, 28 Mar 2016 11:25:17 +0000 (12:25 +0100)]
packaging: fix bashism in dist-snapshot target

On Debian and its derivatives, /bin/sh is a lightweight POSIX shell
(currently dash) which does not support the bash {foo,bar} syntax.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #226
Approved by: cgwalters

10 years agodebian/libostree-1-1.symbols: update for new versioned symbols
Simon McVittie [Mon, 28 Mar 2016 11:49:25 +0000 (12:49 +0100)]
debian/libostree-1-1.symbols: update for new versioned symbols